<?php  
use \app\common\services\UrlService;
use \app\common\services\StaticService;
StaticService::includeAppJsStatic( "/js/m/user/address_set.js",\app\assets\MAsset::className() );
?>
<div style="min-height: 500px;">
	<div class="page_title clearfix">
    <span>常用收货地址</span>
</div>
<ul class="address_list">
<?php foreach($list as $v):?>
    	<li>
		<p><span><?=$v['nickname']?></span><?=$v['mobile']?></p>
		<p><?=$v['address']?></p>
		<div class="addr_op">
			<em class="del" data="<?=$v['id']?>"><i class="del_icon"></i>删除</em>
			<a href="<?=UrlService::buildMUrl('/user/address_set',['address_id'=>$v['id']])?>"><i class="edit_icon"></i>编辑</a>
                            <span class="set_default" data="<?=$v['id']?>">设为默认地址 </span>
            		</div>
	</li>
  	<?php endforeach;?>
    </ul>


<div class="op_box">
    <a href="<?=UrlService::buildMUrl('/user/address_set')?>" class="red_btn" style="color: #ffffff;">添加新地址</a>
</div>
</div>